//
//  ExercisesPageModel.h
//  ShowYork
//
//  Created by hxh on 2020/9/8.
//  Copyright © 2020 hxh. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ExercisesTitleModel.h"
NS_ASSUME_NONNULL_BEGIN
/*
    ) [0]    (null)    @"questionCount" : (long)4
    [1]    (null)    @"score" : @"15"
    [2]    (null)    @"id" : (long)5
    [3]    (null)    @"limitDateTime" : (no summary)
    [4]    (null)    @"level" : (long)12
    [5]    (null)    @"subjectId" : (long)2
    [6]    (null)    @"paperType" : (long)1
    [7]    (null)    @"suggestTime" : (long)30
    [8]    (null)    @"name" : @"第5讲配套练习"
    [9]    (null)    @"titleItems" : @"3 elements"
 */
@interface ExercisesPageModel : NSObject<MJCoding>
@property (nonatomic,strong)NSNumber *questionCount;
@property (nonatomic,strong)NSNumber *id;
@property (nonatomic,strong)NSNumber *limitDateTime;
@property (nonatomic,strong)NSNumber *level;
@property (nonatomic,strong)NSNumber *subjectId;
@property (nonatomic,strong)NSNumber *paperType;
@property (nonatomic,strong)NSNumber *suggestTime;
@property (nonatomic,copy)NSString *score;
@property (nonatomic,copy)NSString *name;
@property (nonatomic,copy)NSArray<ExercisesTitleModel *> *titleItems;

/// 结果集合
@property (nonatomic,copy)NSArray *resultArray;
/// 所有集合
@property (nonatomic,copy)NSArray *allArray;
/// 错误集合
@property (nonatomic,copy)NSArray *errorArray;

@property (nonatomic,copy)NSArray *errorAndTitleArray;
/// 只错误解析
@property (nonatomic,assign)BOOL onlyError;
/// 除标题外的所有解析
@property (nonatomic,assign)BOOL onlyQuestion;
/// 包含标题的错误所有解析
@property (nonatomic,assign)BOOL errorQuestion;
/// 当前索引位置
@property (nonatomic,assign)NSInteger currentIndex;
/// 总分
@property (nonatomic,assign)NSInteger totalScore;

@property (nonatomic,assign)BOOL existError;

@property (nonatomic,assign)CGFloat cardTime;

@property (nonatomic,strong)NSMutableArray *objects;

/// 保存
- (void)save;
/// 查询
+ (ExercisesPageModel *)getCurrentExercieseById:(NSNumber *)id;
/// 删除
+ (void)deleteExercieseById:(NSNumber *)id;

- (void)modifyObject;



@end

NS_ASSUME_NONNULL_END
